package com.example.anliku.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.Transient;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@ApiModel(value = "com-example-anliku-entity-Comment")
@Data
public class Comment {
    /**
     * 评论记录id
     */
    @ApiModelProperty(value = "评论记录id")
    private Integer commentId;

    /**
     * 评论人id
     */
    @ApiModelProperty(value = "评论人id")
    private String commentUserId;

    /**
     * 评论案例id
     */
    @ApiModelProperty(value = "评论案例id")
    private String commentCaseId;

    /**
     * 评论内容
     */
    @ApiModelProperty(value = "评论内容")
    private String commentContent;

    /**
     * 评论时间
     */
    @ApiModelProperty(value = "评论时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date commentTime;

    /**
     * 评论状态
     * -1：审核不通过
     * 0：待审核
     * 1：审核通过
     */
    @ApiModelProperty(value = "评论状态,-1：审核不通过,0：待审核,1：审核通过")
    private Integer commentState;

    /**
     * 审核人id
     */
    @ApiModelProperty(value = "审核人id")
    private String commentCheckId;

    /**
     * 审核通过时间
     */
    @ApiModelProperty(value = "审核通过时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date commentPassTime;

    @Transient
    private User user;

    @Transient
    private Example example;

    @Transient
    private Admin admin;


}
